package 创建者模式.原型模式.demo;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/4 11:02
 */

public class Realizetype implements Cloneable{
    public Realizetype() {
        System.out.println("具体的原型对象创建完成");
    }

    @Override
    protected Realizetype clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功");
        return (Realizetype) super.clone();
    }
}
